import { uniFetch } from '@/utils/request'

//任务列表
export const getTaskListAPI = (data) => {
    return uniFetch.get("/driver/tasks/list", data);
}

//任务详情
export const getTaskDetailsListAPI = (jobId) => {
    return uniFetch.get(`/driver/tasks/details/${jobId}`);
}

//延迟提货
export const getTaskDelayListAPI = (data) => {
    return uniFetch.put(`/driver/tasks/delay`,data);
}

//提货
export const getTaskDeliveryListAPI = (data) => {
    return uniFetch.post(`/driver/tasks/takeDelivery`,data);
}

//上报异常
export const getTaskReportExceptionListAPI = (data) => {
    return uniFetch.post(`/driver/tasks/reportException`,data);
}

//交付
export const getTaskDeliverListAPI = (data) => {
    return uniFetch.post(`/driver/tasks/deliver`,data);
}

//回车登记
export const getTaskTruckRegistrationListAPI = (data) => {
    return uniFetch.post(`/driver/tasks/truckRegistration`,data);
}

